/*
 * BattleState.h
 *
 *  Created on: 16-02-2012
 *      Author: glu
 */

#ifndef BATTLESTATE_H_
#define BATTLESTATE_H_

#include "../precompile.h"
#include "../GameState.h"
#include "../Tile.h"

class BattleState: public GameState {
public:
	BattleState();
	void handleEvents(SDL_Event &event);
	void logic();
	void update();
	GameStates getNextState();
	~BattleState();

private:
	SDL_Surface* background;
	SDL_Surface* tile;
	SDL_Surface* tile_range;

	Tile** tiles_grid;

	void applyTileSurface( Tile tile, SDL_Surface* src, SDL_Surface* dst, SDL_Rect* clip=NULL);
};

#endif /* BATTLESTATE_H_ */
